package com.tesco.entity.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;


@Data
@TableName("yg_shoppingcart")
public class YgShoppingcart extends Model<YgShoppingcart> {
    /**
     * 主键id
     */
    @TableId(value = "gwid",type = IdType.AUTO)
    private Integer gwid;
    
    /** 
     *username 
     */
    @TableField(value = "username")
    private String username;
    
    /** 
     *商品id 
     */
    @TableField(value = "spid")  
    private Integer spid;

    /**
     * 数量
     */
    @TableField(value = "spnum")
    private Integer spnum;

    /**
     * 创建时间
     */
    @TableField(value = "createdat")
    private Date createdat;

    public static final String COL_GWID = "gwid";
     
    public static final String COL_USERNAME = "username";
     
    public static final String COL_SPID = "spid";

    public static final String COL_SPNUM = "spnum";

    public static final String COL_CREATEDAT = "createdat";
     

}

